/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.scote.base.model;

import java.util.List;

/**
 *
 * @author YanPeng
 */
public class DataGrid implements java.io.Serializable {

    private long total = 0l;// 总记录数
    private List rows;// 每行记录
    private List footer;

    public DataGrid() {
    }

    public DataGrid(List rows) {
        this.rows = rows;
    }

    public DataGrid(long total, List rows) {
        this.total = total;
        this.rows = rows;
    }

    public DataGrid(List rows, long total) {
        this.rows = rows;
        this.total = total;
    }

    public DataGrid(List rows, List footer, long total) {
        this.rows = rows;
        this.footer = footer;
        this.total = total;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }

    public List getFooter() {
        return footer;
    }

    public void setFooter(List footer) {
        this.footer = footer;
    }
}
